const human = { type: 'human' };

const me = Object.create(human, {
    name: {
        configurable: true,
        writable: true,
        enumerable: true,
        value: 'Tony Stark',
    },
});

me.hasOwnProperty('name');
// => true

me.hasOwnProperty('type');
// => false, 因为 type 继承自原型链

console.log(Object.keys(me));
// => [ 'name' ]
for (const key in me) {
    console.log(key);
    // => name
    // => type
}
